package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.NursingProjectPageDTO;
import com.zzyl.entity.Reservation;
import com.zzyl.vo.ReservationVo;

import java.util.List;
import java.util.Map;

public interface ReservationService {
    /**
     * 查询当日取消数量
     * @return
     */
    Integer getCancelledCount();

    /**
     * 查询每个时间段剩余的预约数量
     * @return
     */
    List<Map<String, Object>> countByTime(Long reservationDay);

    /**
     * 新增预约
     * @param reservation
     */
    void insert(Reservation reservation);

    /**
     * 分页条件查询
     * @param
     * @return
     */
    PageResponse<ReservationVo> pageCondition(NursingProjectPageDTO reservationPageDTO);

    /**
     * 取消预约
     * @param id
     */
    void cancel(Long id);
}
